var express = require('express');
var router = express.Router();
var passport=require('passport');
var collectionController=require('../controllers/collectionController')
// 查询收藏夹

//添加收藏
router.post('/addProduct/:userId',function (req,res,next) {
    collectionController.addProduct(req,res)
})
// 删除收藏
router.delete('/delProduct/:collectionId',function (req,res,next) {
  collectionController.delProduct(req,res)
})
router.get('/getUser',function (req,res,next) {
  collectionController.getcollectionList(req,res)
})
module.exports=router

  